<?php
namespace App\Models;

use App\Models\Auto\BaseAdmin;


class Admin extends BaseAdmin
{

    public function scopeOfMobile($query, $mobile)
    {
        return $query->where("mobile", $mobile);
    }
    public function scopeOfLoginName($query, $mobile)
    {
        return $query->where("login_name", $mobile);
    }

}